package com.rcklos.bottomnavgationdemo.view;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.rcklos.bottomnavgationdemo.R;

public class BlankFragment extends Fragment {

    private String text;

    private BlankFragment(String text){
        this.text = text;
    }

    public static BlankFragment newInstance(String text){
        return new BlankFragment(text);
    }

    private void test(Context context){}

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_text, container, false);
        ((TextView)view.findViewById(R.id.frag_text_text)).setText(text);
        return view;
    }
}
